package com.albaba.designpattern.beans;

/**
 * @author zx
 * @version 1.0
 * @description IOC 容器的父接口
 * @date 2025/3/8 20:15
 */
public interface BeanFactory {

    Object getBean(String beanName) throws Exception;

    // 泛型方法
    <T>T getBean(String name,Class<? extends T> clazz) throws Exception;
}
